<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<include file="rescue/nav" />
		<form class="well form-inline margin-top-20" method="get" action="{:url('rescue/index')}">
			<input type="text" class="form-control w-120" name="keyword" value="{:input('request.keyword/s','')}" placeholder="请输入 姓名">
			<input type="submit" class="btn btn-primary" value="搜索" />
		</form>
		<table class="table table-hover table-bordered m-t-20">
			<thead>
				<tr>
					<th width="100">姓名</th>
					<th width="120">手机号</th>
					<th width="150">求救时间</th>
					<th width="200">位置</th>
					<th width="80">状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.user_name}</td>
					<td>{$vo.user_mobile}</td>
					<td>{$vo.create_time|time_format='Y-m-d H:i',###}</td>
					<td>
						<em class="fa fa-map-marker popup-url"
							data-url="https://uri.amap.com/marker?position={$vo.longitude},{$vo.latitude}"
							data-width="800"
						> 定位</em>
					</td>
					<td>{$vo.status|dict_convert='rescue_status',###}</td>
					<td>
						<eq name="vo.status" value="1">
							<a href="javascript:void(0);" class="js-ajax-send" data-status="2" data-url='{:url("rescue/save",array("id"=>$vo["id"]))}'>标记为已处理</a>
						</eq>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		</div>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>